<%@ page import="com.my.pojo.Check" %>
<%@ page import="java.util.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3 align="center">考勤统计信息</h3>

<table border="1" align="center" width="50%"    cellspacing="0" bordercolor="#000000" >
  <tr>
    <th>序号</th>
    <th>用户名</th>
    <th>部门名称</th>
    <th>签到时间</th>

  </tr>
  <%
    List<Map<String,Object>> countcheckList=(ArrayList)session.getAttribute("countcheckList");
    for(int i=0;i<countcheckList.size();i++){
      Map map=(Map) countcheckList.get(i);
        Collection<String> values=map.values();
        List<String> list=new ArrayList<>();
        list.addAll(values);
        String checkTime= list.get(0);
        String userName= list.get(1);
        String departName= list.get(3);
  %>
     <tr>
      <td align="center"> <%=i+1%></td>
      <td align="center"><%=userName%></td>
      <td align="center"><%=departName%></td>
      <td align="center"> <%=checkTime%></td>
    </tr>
<%
  }
%>
</table>
</body>
</html>
